package com.chuan.thinkingjava.think4;

public class ChildThread extends BaseThread{
	
	public static void main(String[] args) {
		ChildThread ct = new ChildThread();
		Thread t = new Thread(ct);
		t.start();  //线程处于就绪状态
		System.out.println(t.getName());
		for (int i = 0; i < 1000; i++) {
			System.out.println("我执行了" + i);
		}
	}

	@Override
	public void say() {
		System.out.println("I say");
	}
}
